Smart Paste is a tool broadly available at Google that predicts the next state of a code environment and uses generative AI to create context-aware adjustments to pasted code. It streamlines the process of copy-pasting during code revisions. When testing the tool with around 40,000 engineers, Google found that 6.9% of all pastes in the IDE utilized Smart Paste - 42.5% of suggestions from the feature were accepted. This article discusses how Google developed the feature.
Friday, June 14, 2024Google's core code tooling team has trained a smart paste model that adjusts code pasted in based on the context. They found a 42% acceptance rate for 6% of all copied code.